package cn.xiuxius.embedded.model;

import lombok.Getter;

@Getter
public enum STCType {
    STC89("stc89"),
    STC12A("stc12a"),
    STC12B("stc12b"),
    STC12("stc12"),
    STC15A("stc15a"),
    STC15("stc15"),
    STC8("stc8"),
    STC8D("stc89"),
    STC8G("stc8g"),
    USB15("usb15"),
    AUTO("auto");
    private final String value;

    STCType(String value) {
        this.value = value;
    }

    public static STCType from(String val) {
        for (STCType type : STCType.values()) {
            if (type.value.equalsIgnoreCase(val)) {
                return type;
            }
        }
        return null;
    }
}
